<template>
  <div>
    <el-card v-for="r in records" :key="r.date">
      <template slot="header">
        <div class="header">
          <div class="version">{{ r.version }}</div>
          <div class="date">{{ r.date }}</div>
        </div>
      </template>

      <div class="content">
        <div v-html="r.content"></div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'Record',
  data() {
    return {
      records: [
        { version: '0.0.1', date: '2021-03-18', content: `<div>first version</div> ` }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.version {
  font-size: 20px;
  color: var(--color-text-primary);
}

.date {
  font-size: 18px;
  color: var(--color-text-secondary);
}

.content {
  font-size: 16px;
  color: var(--color-text-secondary);
}
</style>
